# 验证模型是否支持

def validate_model(model, supported_models):
    if model not in supported_models:
        raise ValueError(f"Unsupported model: {model}. Supported models are: {', '.join(supported_models)}")